home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / CMMComponent.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  5.9 KB  |  184 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        CMMComponent.p
  3.  
  4.      Contains:    ColorSync CMM Components
  5.  
  6.      Version:    Technology:    ColorSync 2.0
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT CMMComponent;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __CMMCOMPONENT__}
  30. {$SETC __CMMCOMPONENT__ := 1}
  31.  
  32. {$I+}
  33. {$SETC CMMComponentIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __TYPES__}
  38. {$I Types.p}
  39. {$ENDC}
  40. {    ConditionalMacros.p                                            }
  41.  
  42. {$IFC UNDEFINED __QUICKDRAW__}
  43. {$I Quickdraw.p}
  44. {$ENDC}
  45. {    MixedMode.p                                                    }
  46. {    QuickdrawText.p                                                }
  47.  
  48. {$IFC UNDEFINED __COMPONENTS__}
  49. {$I Components.p}
  50. {$ENDC}
  51.  
  52. {$IFC UNDEFINED __CMAPPLICATION__}
  53. {$I CMApplication.p}
  54. {$ENDC}
  55. {    Files.p                                                        }
  56. {        OSUtils.p                                                }
  57. {            Memory.p                                            }
  58. {        Finder.p                                                }
  59. {    Printing.p                                                    }
  60. {        Errors.p                                                }
  61. {        Dialogs.p                                                }
  62. {            Menus.p                                                }
  63. {            Controls.p                                            }
  64. {            Windows.p                                            }
  65. {                Events.p                                        }
  66. {            TextEdit.p                                            }
  67. {    CMICCProfile.p                                                }
  68.  
  69. {$PUSH}
  70. {$ALIGN MAC68K}
  71. {$LibExport+}
  72.  
  73. CONST
  74.     CMMInterfaceVersion            = 1;
  75.  
  76. { Component function selectors }
  77. { Required }
  78.     kCMMInit                    = 0;
  79.     kNCMMInit                    = 6;
  80.     kCMMMatchColors                = 1;
  81.     kCMMCheckColors                = 2;
  82.  
  83. { Optional }
  84.     kCMMValidateProfile            = 8;
  85.     kCMMFlattenProfile            = 14;
  86.     kCMMUnflattenProfile        = 15;
  87.     kCMMMatchBitmap                = 9;
  88.     kCMMCheckBitmap                = 10;
  89.     kCMMMatchPixMap                = 3;
  90.     kCMMCheckPixMap                = 4;
  91.     kCMMConcatenateProfiles        = 5;
  92.     kCMMConcatInit                = 7;
  93.     kCMMNewLinkProfile            = 16;
  94.     kCMMGetPS2ColorSpace        = 11;
  95.     kCMMGetPS2ColorRenderingIntent = 12;
  96.     kCMMGetPS2ColorRendering    = 13;
  97.     kCMMGetPS2ColorRenderingVMSize = 17;
  98.  
  99.  
  100. FUNCTION NCMInit(CMSession: ComponentInstance; srcProfile: CMProfileRef; dstProfile: CMProfileRef): CMError;
  101.     {$IFC NOT GENERATINGCFM}
  102.     INLINE $2F3C, 8, 6, $7000, $A82A;
  103.     {$ENDC}
  104. FUNCTION CMInit(CMSession: ComponentInstance; srcProfile: CMProfileHandle; dstProfile: CMProfileHandle): CMError;
  105.     {$IFC NOT GENERATINGCFM}
  106.     INLINE $2F3C, 8, 0, $7000, $A82A;
  107.     {$ENDC}
  108. FUNCTION CMMatchColors(CMSession: ComponentInstance; VAR myColors: CMColor; count: LONGINT): CMError;
  109.     {$IFC NOT GENERATINGCFM}
  110.     INLINE $2F3C, 8, 1, $7000, $A82A;
  111.     {$ENDC}
  112. FUNCTION CMCheckColors(CMSession: ComponentInstance; VAR myColors: CMColor; count: LONGINT; VAR result: LONGINT): CMError;
  113.     {$IFC NOT GENERATINGCFM}
  114.     INLINE $2F3C, 12, 2, $7000, $A82A;
  115.     {$ENDC}
  116. { Optional functions }
  117. FUNCTION CMMValidateProfile(CMSession: ComponentInstance; prof: CMProfileRef; VAR valid: BOOLEAN): CMError;
  118.     {$IFC NOT GENERATINGCFM}
  119.     INLINE $2F3C, 8, 8, $7000, $A82A;
  120.     {$ENDC}
  121. FUNCTION CMMFlattenProfile(CMSession: ComponentInstance; prof: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  122.     {$IFC NOT GENERATINGCFM}
  123.     INLINE $2F3C, 16, 14, $7000, $A82A;
  124.     {$ENDC}
  125. FUNCTION CMMUnflattenProfile(CMSession: ComponentInstance; VAR resultFileSpec: FSSpec; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  126.     {$IFC NOT GENERATINGCFM}
  127.     INLINE $2F3C, 12, 15, $7000, $A82A;
  128.     {$ENDC}
  129. FUNCTION CMMatchBitmap(CMSession: ComponentInstance; {CONST}VAR bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR matchedBitmap: CMBitmap): CMError;
  130.     {$IFC NOT GENERATINGCFM}
  131.     INLINE $2F3C, 16, 9, $7000, $A82A;
  132.     {$ENDC}
  133. FUNCTION CMCheckBitmap(CMSession: ComponentInstance; {CONST}VAR bitmap: CMBitmap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr; VAR resultBitmap: CMBitmap): CMError;
  134.     {$IFC NOT GENERATINGCFM}
  135.     INLINE $2F3C, 16, 10, $7000, $A82A;
  136.     {$ENDC}
  137. FUNCTION CMMatchPixMap(CMSession: ComponentInstance; VAR myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; refCon: UNIV Ptr): CMError;
  138.     {$IFC NOT GENERATINGCFM}
  139.     INLINE $2F3C, 12, 3, $7000, $A82A;
  140.     {$ENDC}
  141. FUNCTION CMCheckPixMap(CMSession: ComponentInstance; {CONST}VAR myPixMap: PixMap; progressProc: CMBitmapCallBackUPP; VAR myBitMap: BitMap; refCon: UNIV Ptr): CMError;
  142.     {$IFC NOT GENERATINGCFM}
  143.     INLINE $2F3C, 16, 4, $7000, $A82A;
  144.     {$ENDC}
  145. FUNCTION CMConcatInit(CMSession: ComponentInstance; VAR profileSet: CMConcatProfileSet): CMError;
  146.     {$IFC NOT GENERATINGCFM}
  147.     INLINE $2F3C, 4, 7, $7000, $A82A;
  148.     {$ENDC}
  149. FUNCTION CMNewLinkProfile(CMSession: ComponentInstance; VAR prof: CMProfileRef; {CONST}VAR targetLocation: CMProfileLocation; VAR profileSet: CMConcatProfileSet): CMError;
  150.     {$IFC NOT GENERATINGCFM}
  151.     INLINE $2F3C, 12, 16, $7000, $A82A;
  152.     {$ENDC}
  153. FUNCTION CMMGetPS2ColorSpace(CMSession: ComponentInstance; srcProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  154.     {$IFC NOT GENERATINGCFM}
  155.     INLINE $2F3C, 16, 11, $7000, $A82A;
  156.     {$ENDC}
  157. FUNCTION CMMGetPS2ColorRenderingIntent(CMSession: ComponentInstance; srcProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  158.     {$IFC NOT GENERATINGCFM}
  159.     INLINE $2F3C, 16, 12, $7000, $A82A;
  160.     {$ENDC}
  161. FUNCTION CMMGetPS2ColorRendering(CMSession: ComponentInstance; srcProf: CMProfileRef; dstProf: CMProfileRef; flags: LONGINT; proc: CMFlattenUPP; refCon: UNIV Ptr): CMError;
  162.     {$IFC NOT GENERATINGCFM}
  163.     INLINE $2F3C, 20, 13, $7000, $A82A;
  164.     {$ENDC}
  165. FUNCTION CMMGetPS2ColorRenderingVMSize(CMSession: ComponentInstance; srcProf: CMProfileRef; dstProf: CMProfileRef; VAR vmSize: LONGINT): CMError;
  166.     {$IFC NOT GENERATINGCFM}
  167.     INLINE $2F3C, 12, 17, $7000, $A82A;
  168.     {$ENDC}
  169. FUNCTION CMConcatenateProfiles(CMSession: ComponentInstance; thru: CMProfileHandle; dst: CMProfileHandle; VAR newDst: CMProfileHandle): CMError;
  170.     {$IFC NOT GENERATINGCFM}
  171.     INLINE $2F3C, 12, 5, $7000, $A82A;
  172.     {$ENDC}
  173.  
  174. {$ALIGN RESET}
  175. {$POP}
  176.  
  177. {$SETC UsingIncludes := CMMComponentIncludes}
  178.  
  179. {$ENDC} {__CMMCOMPONENT__}
  180.  
  181. {$IFC NOT UsingIncludes}
  182.  END.
  183. {$ENDC}
  184.